<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
        function onchangeway(){
            alert("你选的女神已发生改变！");
        }
    </script>
</head>
<body>
    请选择你心中的女神：
    <select onchange="onchangeway();">
        <option >冰冰</option>
        <option >欢欢</option>
        <option >佳佳</option>
    </select>
</body>
</html>